set SPLocation=%CommonProgramFiles%\Microsoft Shared\web server extensions\12
set SPAdminTool=%SPLocation%\BIN\stsadm.exe

::stsadm -o deactivatefeature -name MySiteStapler -url http://stdemo:20000
::stsadm -o uninstallfeature -name MySiteStapler


ECHO ------------ RETRACTING SOLUTION ------------

stsadm -o retractsolution -name mysitecreate.wsp -immediate -allcontenturls  
stsadm -o execadmsvcjobs

ECHO ------------ DELETING SOLUTION  ------------

stsadm -o deletesolution -name MysiteCreate.wsp
::stsadm -o execadmsvcjobs

ECHO ----------- ADDING AND DEPLOTING SOLUTION ------------

stsadm -o addsolution -filename MySiteCreate.wsp
stsadm -o deploysolution  -name MysiteCreate.wsp -immediate -allowgacdeployment -force -allcontenturls
stsadm -o execadmsvcjobs

ECHO ------------ ACTIVATING FEATURE ------------

::stsadm -o activatefeature -name MySiteStapler -url http://psw2k82:30000



PAUSE